package com.sunbeam.dao;

import com.sunbeam.domain.User;

/**
 * @Title: UserDao.java
 * @Package com.sunbeam.dao
 * @Description: TODO
 * @author lyz lyzpoq_gmail_com
 * @date 2014/02/11 11:49:21
 * @version V1.0
 */
public interface UserDao {

	/**
	 * 
	 * @Title: find
	 * @Description: TODO
	 * @param @param username
	 * @param @param password
	 * @param @return
	 * @return User
	 * @throws
	 */
	public abstract User find(String username, String password);

	/**
	 * 
	 * @Title: find
	 * @Description: TODO
	 * @param @param username
	 * @param @return
	 * @return boolean
	 * @throws
	 */
	public abstract boolean find(String username);

	/**
	 * 
	 * @Title: add
	 * @Description: TODO
	 * @param @param user
	 * @return void
	 * @throws
	 */
	public abstract void add(User user);

}
